﻿// -------------------------------------------------------------------------
//    @FileName         :    NFScopedMessageHead.h
//    @Author           :    gaoyi
//    @Date             :    24-8-8
//    @Email            :    445267987@qq.com
//    @Module           :    NFScopedMessageHead
//
// -------------------------------------------------------------------------

#pragma once

#include "NFComm/NFCore/NFPlatform.h"
#include "NFComm/NFObjCommon/NFObject.h"
#include "NFComm/NFObjCommon/NFShmMgr.h"
#include "NFComm/NFPluginModule/NFIMemMngModule.h"

class NFScopedMessageHead
{
public:
	NFScopedMessageHead()
	{
	}

	NFScopedMessageHead(int iSessionGlobalID, int iCmd, uint16_t wNetRequestSeq);
	~NFScopedMessageHead();
	static int32_t GetSessionGlobalID();
	static uint16_t GetRequestSeq();
	static uint16_t GetStackRequestSeq(int iSessionGlobalID, int iAckCmd);
private:
	static int32_t m_iSessionGlobalID;
	static int32_t m_iCmd;
	static uint16_t m_wRequestSeq;
};